package com.aidex.biz.domain;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;

import com.aidex.common.core.domain.entity.SysUser;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.aidex.common.utils.log.annotation.FieldRemark;
import com.aidex.common.utils.log.annotation.LogField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.aidex.common.annotation.Excel;
import com.aidex.common.core.domain.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 上门接待人员对象 biz_to_home_user
 *
 * @author sean
 * @email 2074844820@qq.com
 * @date 2023-11-23
 */
@Data
public class ToHomeUser extends BaseEntity<ToHomeUser> {
    private static final long serialVersionUID = 1L;


    /**
     * 客户ID
     */
    @Excel(name = "客户ID")
    private String customerId;

    /**
     * 上门记录ID
     */
    @Excel(name = "上门记录ID")
    private String tohomeId;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 状态（0待上门 1已上门）
     */
    @NotBlank(message = "状态（0正常 1 停用）不允许为空")
    private String status;

    /**
     * 预审状态（0待预审 1 已申请）
     */
    @NotBlank(message = "预审状态（1待预审 2 已申请 3 已签约）")
    private String yushenStatus;

    private String dName;
    private String uName;
    private String jinjianId;

    private SysUser[] qdUsers;// 签到用户

    private String amount;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date toHomeTime;
    private String khjlName;// 客户经理
    private String cusName;// 客户姓名
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date yuyueTime;
    private String phone;
    private String carStatus;
    private String carModel;
    private String cusRemark;
    private String cusStatus;
    private String nameOrPhone;


    private String jinjianStatus;
    private String[] jinjianStatusArray;
    /**
     * 邀约信息
     */
    private String content;

    public String getCustomerId() {
        return customerId;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }

    public String getTohomeId() {
        return tohomeId;
    }

    public void setTohomeId(String tohomeId) {
        this.tohomeId = tohomeId;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("userId", getUserId())
                .append("deptId", getDeptId())
                .append("userName", getUserName())
                .append("deptName", getDeptName())
                .append("companyId", getCompanyId())
                .append("customerId", getCustomerId())
                .append("tohomeId", getTohomeId())
                .append("sort", getSort())
                .append("status", getStatus())
                .append("remark", getRemark())
                .append("id", getId())
                .append("createBy", getCreateBy())
                .append("createDept", getCreateDept())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("updateIp", getUpdateIp())
                .append("version", getVersion())
                .append("delFlag", getDelFlag())
                .toString();
    }
}
